//
//  HomeCopyrightCell.swift
//  d11
//
//  Created by peale on 2018/8/7.
//  Copyright © 2018年 Tech_001. All rights reserved.
//

import UIKit

class HomeCopyrightCell: UITableViewCell {
    var iconImgView: UIImageView?
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        self.setUpUI()
    }
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
    
    func setUpUI() -> Void {
        self.backgroundColor  = UIColor.white
        self.selectionStyle = UITableViewCell.SelectionStyle.none
        if kIsIpad == true{
              self.iconImgView = UIImageView.init(image: imageNamed("wanb_footer_ipad"))
           
        }else{
              self.iconImgView = UIImageView.init(image: imageNamed("wanb_footer"))
        }
        
        self.contentView.addSubview(self.iconImgView!)
        self.iconImgView?.snp.makeConstraints{(make) in
            make.width.equalToSuperview()
            make.height.equalToSuperview()
            make.centerX.equalToSuperview()
        }
    }
}
